package classfile

import (
	"math"
)

type ConstantDoubleInfo struct {
	tag uint8
	//uint32 high_butes
	//uint32 low_bytes
	val float64
}

func (self *ConstantDoubleInfo) readInfo(reader *ClassReader) {
	bytes := reader.readUint64()
	self.tag = 6
	self.val = math.Float64frombits(bytes)
}

func (self *ConstantDoubleInfo) Value() float64 {
	return self.val
}
